import { makeAutoObservable } from 'mobx';

const delay = (ms: number) => new Promise((res) => setTimeout(res, ms));

class Count {
    count: number = 0;

    constructor() {
        makeAutoObservable(this);
    }

    async addCount() {
        await delay(1000);
        this.count += 1;
    }
}

export default new Count();
